package com.xpffly.assist.service;

import org.springframework.retry.annotation.Backoff;
import org.springframework.retry.annotation.Retryable;

/**
 * @Author: xpengfei
 * @Date: 2021/4/28 23:03
 * @Description：服务类
 */
public interface RetryService {
    /**
     * 测试重试
     *
     * @param money
     * @throws Exception
     */
    @Retryable(value = Exception.class, maxAttempts = 5, backoff = @Backoff(delay = 10000, multiplier = 2))
    public void testRetry(int money) throws Exception;
}
